home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-03
/
addnums.zip
/
ADDNUMS.DOC
< prev
next >
Wrap
Text File
|
1990-09-13
|
6KB
|
100 lines
-= ADDNUMS =- Number Inserter
Version 1.00 09/05/86
Version 1.01 09/12/90 P.D.Q. changes.
(C) Copyright 1985, 1990 by William D. Hileman
Route 3, Box 467
Trenton, FL 32693
(904) 463-1680
and Knowledge Applied Technologies, Inc.
502 NW 75th Street, Suite #214
Gainesville, FL 32607
Released to the Public Domain for distribution free of charge.
The user is welcome to freely distribute this software, provided it
is distributed in its original form, and that there is no compensation
for the distribution.
ADDNUMS is a program written for the latest Microsoft BASIC compilers.
ADDNUMS is a utility which reads an ASCII text file and inserts line numbers
before each logical line starting with line number one (1). Any line which
ends with an underscore character (_) will not have the following line
numbered, as this is the BASIC character which denotes a continuation of a
logical line. This line number insertion utility allows better debugging of
a BASIC program since a source program with no line numbers, while generally
preferred for it's better structure and appearance, does not return error
line numbers with it's error code. As a matter of fact, if there are no
line numbers at all, not even the error code will be reported in any
coherent way - a major problem with the Microsoft/IBM BASIC compilers.
Adding line numbers to your BASIC program with this utility will help
pin-point the problem down to the logical line number. Note that if your
program does indeed contain one or more logical line numbers, you may have
to edit the '.NUM' file before compiling.
ADDNUMS can be invoked by entering 'ADDNUMS' and pressing [ENTER].
When started in this manner, ADDNUMS will prompt for a source filename.
The format for the source filename is the same as the command line format
described later. Pressing [ENTER] without any filename will abort and exit
to DOS. ADDNUMS will then search for the file. If the file does not exist,
an error message is displayed, otherwise the output file will be created
with the extension '.NUM'. The default extension for the source file is
'.BAS'. If the source file has no extension, include a period or this
program will automatically append the 'BAS'.
ADDNUMS can also be invoked with the source filename on the command
line by entering in the format 'ADDNUMS [d:][\path\]filename[.ext]', and
pressing [ENTER], where '[d:]' is the optional drive letter followed by a
colon, '[\path\]' is the optional directory path, 'filename' is the re-
quired one to eight-character name of the file, and '.ext' is the optional
one to three-character file extension preceded by a period. If the ex-
tension happens to be '.NUM', the file will not be processed, since that is
the file that would have been created for output. This type of invocation
by-passes the request for the source file name and goes straight through the
file integrity check covered earlier, and then produces the output file with
the extension '.NUM'.
Finally, ADDNUMS can be invoked with a question mark on the command
line by entering 'ADDNUMS ?' and pressing [ENTER]. This causes ADDNUMS
to display a one-page description of the program with acceptable command
line formats displayed. You will find this option available on most of
my utilities.
I hope you can find some use of this utility. I use it rather fre-
quently, as I almost exclusively write BASIC programs with little or no
line numbers, and find that with my being human, most do not run the first
time.
I ask for no donations for my software, I write programs for a living
eight hours (plus) a day, and do these because I enjoy it. These are my
small contributions to the public domain, mostly dedicated to the numerous
sysops I've encountered who feel no sacrifice in donating their priceless
time, effort, and equipment for our usage. If you do find one of my
programs interesting or useful, or have an objective criticism, by all
means, please drop me a line. I'd rather receive comments on my programs
than a few dollars contribution any day!
Look for my other public domain software:
IBC.ZIP - A one to four-player simulation game.
TAB2SPC.ZIP - Utility to expand TAB characters in text files
ADDNUMS.ZIP - Utility to insert line numbers in a BASIC program
LOWCASE.ZIP - Utility to convert upper to lower case in text files.
FLASH.ZIP - Library of Turbo PASCAL routines.
TFL.ZIP - Text file lister (to printer).
PAGEDISP.ZIP - Text slide-show maker.
MAKEMRG.ZIP - Text merge file maker.
UUDOS.ZIP - User Un-friendly DOS with Sound Blaster support.
TMORE.ZIP - Like DOS's 'TYPE xxxxxxxx.xxx | MORE', but better.
ADIR.ZIP - Like DOS's DIR, but shows attributes.
PUSHPOP.ZIP - Routines to save and restore current drive & directory.
IBC, TAB2SPC, ADDNUMS, LOWCASE, TFL, MAKEMRG, and UUDOS are written in
Microsoft BASIC. FLASH, and PAGEDISP, are written in Borland Turbo PASCAL
3.0. TMORE, ADIR, and PUSHPOP are written in Borland Turbo C. CHKMEM is
written in Borland Turbo PASCAL, and Microsoft BASIC 7.0 using Crescent
Software's P.D.Q. libraries. All include source, documentation, and
run-time files.